Printing apparatus, control method thereof, and storage medium

ABSTRACT

A printing apparatus according to one aspect of this invention includes an assigning unit configured to assign the original images of a plurality of pages to the obverse surfaces and reverse surfaces of a plurality of sheets in the page order. The printing apparatus further includes a printing control unit configured to, when reverse order output of the original images of the plurality of pages is instructed, control to print the original images of the plurality of pages from a sheet to which the assigning unit assigns the original image of the final page out of the plurality of pages.

BACKGROUND OF THE INVENTION

1. Field of the Invention

The present invention relates to a printing apparatus, control methodthereof, and storage medium.

2. Description of the Related Art

There has conventionally been known a digital copying machine having anelectronic sorting function of temporarily storing, in a memory such asa hard disk, image data obtained by reading the image of an original,repetitively reading out image data of an arbitrary original from thememory, and copying and printing it. With this function, the digitalcopying machine can discharge copy sheets while sorting them, evenwithout a sorter having a plurality of bins.

In PDL (Page Description Language) printing, a digital copying machinereceives PDL data of an application in a host computer via a network.With the electronic sorting function, the digital copying machinerasterizes the received PDL data into a bitmap image, temporarily storesit in a memory such as a hard disk, repetitively reads out an arbitraryimage from the memory, and prints it while sorting sheets.

A printing apparatus prepares face-down output for discharging outputsheets with their printed surfaces facing down, and face-up output fordischarging output sheets with their printed surfaces facing up. Inface-down output, image data of an original are printed in the normalorder. In face-up output, since image data of an original are printed inthe reverse order, all image data of the original are temporarily storedin a memory and then printed in the reverse order.

Depending on the page count of an original such as Nin1 reductionlayout, a final sheet in normal order output may have a special layout.For example, when printing seven pages of an original in a 4in1reduction layout, “1, 2, 3, 4” pages are printed on the first sheet, and“5, 6, 7” pages are printed on the second sheet. If these pages areprinted simply in the reverse order, “4, 5, 6, 7” pages are printedfirst and then “1, 2, 3” pages are printed, and the layout resultdiffers from that in normal order output. To prevent this, JapanesePatent Laid-Open No. 2007-203578 proposes a method of, in reverse orderoutput, calculating the layout of the first sheet in reverse orderoutput in accordance with the page count of an original and thereduction layout setting.

In double-sided printing, when the page count of an original is an oddnumber, the reverse of the final sheet becomes blank. For example,double-sided printing of three pages of an original results in “obverse1, reverse 2” and “obverse 3, reverse blank”. Printing this original inreverse order results in “obverse 3, reverse 2” and “obverse 1, reverseblank”. Even in this case, imposition in normal order output and theprinting result by reverse order output differ from each other. Hence,similar to the reduction layout, imposition on the first sheet inreverse order output is calculated from the page count of an originaland the double-sided printing setting. When the page count of anoriginal is an odd number, the obverse surface of the first sheet inreverse order output is set to be blank, and when it is an even number,the obverse surface of the first sheet in reverse order output isprinted. That is, a conventional printing apparatus performs impositionand layout for the first sheet in reverse order output by calculation inaccordance with the page count of an accumulated original and the setvalues of a job.

In double-sided printing of originals of different sizes, impositioncannot be performed on the obverse and reverse of a single output sheet.More specifically, if an A4-size original and A3-size original areimposed on the two surfaces of one A4-size sheet, the image of theA3-size original extends outside the sheet and cannot be normallyprinted. To prevent this, when performing double-sided printing of, forexample, A4- and A3-size originals, the A4-size original is printed onthe obverse of an A4-size sheet while leaving its reverse surface blank.Also, the A3-size original is printed on the obverse of an A3-size sheetwhile leaving its reverse surface blank. In this fashion, to performdouble-sided printing of originals of different sizes, when the originalsize changes, the paper size is changed. If there is no originalcorresponding to the reverse surface, the reverse surface remains blank.In this case, if imposition and layout for the first sheet are executedby calculation based on the page count of an accumulated original andthe set values of a job according to the method disclosed in JapanesePatent Laid-Open No. 2007-203578, an output result in reverse orderoutput differs from one in normal order output.

SUMMARY OF THE INVENTION

The present invention has been made to solve the conventional drawbacks,and provides a technique capable of easily outputting the same printingresult as that in normal order output even when double-sided printing oforiginal sheets of different sizes is performed in reverse order output.

According to one aspect of the present invention, there is provided aprinting apparatus comprising: an assigning unit configured to assignoriginal images of a plurality of pages to obverse surfaces and reversesurfaces of a plurality of sheets in a page order; and a printingcontrol unit configured to, when reverse order output of the originalimages of the plurality of pages is instructed, control to print theoriginal images of the plurality of pages from a sheet to which theassigning unit assigns an original image of a final page out of theplurality of pages.

According to another aspect of the present invention, there is provideda printing apparatus control method comprising: assigning originalimages of a plurality of pages to obverse surfaces and reverse surfacesof a plurality of sheets in a page order; and when reverse order outputof the original images of the plurality of pages is instructed,controlling to print the original images of the plurality of pages froma sheet to which an original image of a final page out of the pluralityof pages is assigned in the assigning.

According to the present invention, even when double-sided printing oforiginal sheets of different sizes is performed in reverse order output,the same printing result as that in normal order output can be easilyoutput.

Further features of the present invention will become apparent from thefollowing description of exemplary embodiments (with reference to theattached drawings).

BRIEF DESCRIPTION OF THE DRAWINGS

FIG. 1 is a block diagram showing the overall arrangement of an imageinput/output system to which an image forming apparatus (printingapparatus) according to the first embodiment is applicable;

FIG. 2 is a sectional view showing the arrangements of a reader unit andprinter unit according to the first embodiment;

FIG. 3 is a plan view showing an operation unit according to the firstembodiment;

FIGS. 4A to 4E are views for explaining normal order and reverse orderoutput operations in double-sided printing of original sheets of thesame size in the first embodiment;

FIGS. 5A to 5G are views for explaining normal order and reverse orderoutput operations in double-sided printing of size-mixed originalsheets;

FIG. 6 is a view for explaining imposition information in the imageforming apparatus according to the first embodiment;

FIG. 7 is a view for explaining an example of information in a RAM andan example of imposition information in a flash memory according to thefirst embodiment;

FIG. 8 is a flowchart for explaining a printing control method by thecontrol unit of the image forming apparatus according to the firstembodiment;

FIG. 9 is a flowchart for explaining imposition processing in step S8005or S8012 of FIG. 8;

FIG. 10 is a view exemplifying a display on an LCD touch panel indocument printing according to the second embodiment;

FIGS. 11A to 11E are views for explaining a document image andimposition information in document printing according to the secondembodiment; and

FIG. 12 is a flowchart for explaining printing control by the controlunit of an image forming apparatus according to the second embodiment.

DESCRIPTION OF THE EMBODIMENTS

Hereinafter, embodiments of the present invention will be described indetail with reference to the accompanying drawings. It should be notedthat the following embodiments are not intended to limit the scope ofthe appended claims, and that not all the combinations of featuresdescribed in the embodiments are necessarily essential to the solvingmeans of the present invention.

First Embodiment

FIG. 1 is a block diagram showing the overall arrangement of an imageinput/output system to which an image forming apparatus (printingapparatus) according to the first embodiment of the present invention isapplicable.

A reader unit (image input apparatus) 200 optically reads an originalimage, and converts the image into image data. The reader unit 200includes a scanner unit 210 having a function of reading an original,and a document feeding unit (DF unit) 250 having a function of conveyingoriginal sheets. A printer unit (image output apparatus) 300 conveysrecording paper (sheet), prints image data as a visible image on it, anddischarges the recording paper from the apparatus. The printer unit 300includes a paper feeding unit 310 having a plurality of types ofrecording paper cassettes, a marking unit 320 having a function oftransferring and fixing image data onto recording paper, and a dischargeunit 330 having a function of outputting printed recording paper fromthe apparatus.

A control unit 110 includes a CPU 120, image memory 130, flash memory140, RAM 150, ROM 160, and operation unit 170. The control unit 110 iselectrically connected to the reader unit 200 and printer unit 300. TheCPU 120 of the control unit 110 provides a copy function by controllingthe reader unit 200 to store image data of an original in the imagememory 130, and controlling the printer unit 300 to print image data inthe image memory 130 on recording paper (sheet). Note that the imagememory 130 has a memory capacity only for several pages of image data,and its memory capacity is limited. Thus, image data which cannot besaved in the image memory 130 are moved to and stored in the flashmemory 140. The flash memory 140 keeps holding its contents even afterpower-off, is readable/rewritable, and has a relatively large capacity.With these characteristics, the flash memory 140 is used to save imagedata in the image memory 130 that are to be left even after the mainpower supply is turned off, and to save various set values.

The RAM 150 is directly mapped in the main memory space of the CPU 120,and loses its contents after the main power supply is turned off. Withthis characteristic, the RAM 150 is used as the work area of the CPU120. The ROM 160 is directly mapped in the main memory space of the CPU120, similar to the RAM 150, and keeps holding its contents even afterthe main power supply is turned off. With this characteristic, the ROM160 stores control programs for the CPU 120. The operation unit 170includes a liquid crystal display unit, a touch panel input unit adheredonto the liquid crystal display unit, and a plurality of hard keys. Asignal input via the touch panel or hard key is transmitted to the CPU120, and the liquid crystal display unit displays functions, image data,and the like in the operation of the image forming apparatus.

FIG. 2 is a sectional view showing the arrangements of the reader unit200 and printer unit 300 according to the embodiment.

First, the reader unit 200 will be explained. In the reader unit 200,the document feeding unit (feeder) 250 feeds original sheets one by onefrom the top onto a platen glass 211. After the end of an originalreading operation, the document feeding unit 250 discharges the originalsheet on the platen glass 211 to a discharge tray 219. When an originalsheet is conveyed onto the platen glass 211, a lamp 212 is turned on,and an optical unit 213 starts moving to expose and scan the originalsheet on the platen glass 211. Light reflected by the original sheet atthis time is guided to a CCD image sensor (to be referred to as a CCDhereinafter) 218 by mirrors 214, 215, and 216, and a lens 217. The CCD218 reads the scanned original image. Image data output from the CCD 218undergoes predetermined processing and then is transferred to thecontrol unit 110.

Next, the printer unit 300 will be explained. In the printer unit 300, alaser driver 321 drives a laser emitting unit 322 to emit a laser beamcorresponding to the image data output from the control unit 110. Thelaser beam irradiates a photosensitive drum 323, forming a latent imagecorresponding to the laser beam on the photosensitive drum 323. Adeveloping unit 324 applies a developer to the latent image. The printerunit 300 includes drawer-shaped cassettes 311 to 314 as paper feedingunits. Further, the feeding units include a manual paper feeding tray315.

The printer unit 300 feeds recording paper from one of the cassettes 311to 314 and the manual paper feeding tray 315, and conveys it to atransfer unit 325 through a conveyance path 331. The transfer unit 325transfers the developer attached to the photosensitive drum 323 onto therecording paper. A conveyance belt 326 conveys the developer-attachedrecording paper to a fixing unit 327, and the developer is fixed ontothe recording paper by the heat and pressure of the fixing unit 327. Therecording paper having passed through the fixing unit 327 is dischargedthrough conveyance paths 335 and 334. Alternatively, when reversing theprinted surface and then discharging the recording paper, the recordingpaper is guided to a conveyance path 338 through a conveyance path 336,and conveyed from there in an opposite direction. The recording paper isdischarged to a discharge bin 350 through a conveyance path 337 and theconveyance path 334.

When double-sided printing is set, after passing through the fixing unit327, the recording paper is guided from the conveyance path 336 to aconveyance path 333 by a flapper 329. The recording paper is conveyed inan opposite direction, and guided to a re-feed conveyance path 332through the conveyance path 338 by the flapper 329. The recording paperguided to the re-feed conveyance path 332 is fed again to the transferunit 325 through the conveyance path 331 at the above-described timing.Regardless of single-sided/double-sided printing, recording paperdischarged through the conveyance path 334 is discharged onto thedischarge bin 350 and stacked.

The operation unit 170 will be explained with reference to FIG. 3. FIG.3 is a plan view showing the operation unit 170 according to theembodiment.

In FIG. 3, an LCD touch panel 600 is used to make main mode settings anddisplay a status. For example, switching to reverse order outputaccording to the embodiment can be set with a reverse order outputbutton 650. When the reverse order output button 650 is ON, it ischecked with a tick, and when it is OFF, the tick disappears. Adouble-sided setting button 651 is used to switch between double-sidedprinting and single-sided printing. A ten-key pad 601 is used to enter anumerical value of 0 to 9. An ID key 602 is used to enter a departmentnumber and password code by the user when the image forming apparatus ismanaged by the department. A reset key 603 is used to reset a set mode.A guide key 604 is used to display an explanation screen for each mode.A user mode key 605 is used to enter a user mode screen. An interruptkey 606 is used to perform interrupt copying. A start key 607 is used tostart a copy operation. A stop key 608 is used to stop a running copyjob. When the user presses a soft power SW key 609, the backlight of theLCD touch panel 600 is turned off, and the image forming apparatusshifts to a low-power state. When the user presses a power saving key610, the image forming state shifts to the power saving state, and whenhe presses the power saving key 610 again, returns from the power savingstate. A contrast key 614 is used to adjust the contrast of the LCDtouch panel 600. When the user presses a counter check key 615, a countscreen appears on the LCD touch panel 600 and displays a total copycount used until now. An execution/memory LED 616 is turned on duringexecution of a job and during image accumulation in an image memory. Anerror LED 617 is turned on when an error has occurred in the apparatus,such as a jam or opening of the door. A power LED 618 is turned on whenthe main switch of the apparatus is ON and power is supplied.

FIGS. 4A to 4E are views for explaining normal order and reverse orderoutput operations in double-sided printing of originals of the same sizein the embodiment.

As shown in FIG. 4A, originals (original sheets) 4001, 4002, and 4003 ofthree pages of the same size exist in the document feeding unit (feeder)250. Double-sided printing of these originals in normal order outputwill be explained. Normal order output and double-sided printing are setby pressing the start key 607 while the reverse order output button 650in FIG. 3 is OFF and double-sided printing is set with the double-sidedsetting button 651.

FIG. 4B is a view showing a printing result in normal order output.Output sheets 4011 and 4012 are printed. The original 4001 of the firstpage is imposed and printed on the obverse surface of the first outputsheet 4011, and the original 4002 of the second page is imposed andprinted on its reverse surface. The original 4003 of the third page isimposed on the obverse surface of the second output sheet 4012, and ablank is imposed on its reverse surface. In double-sided printing whenthe number of originals of the same size corresponds to an odd pagecount, the reverse surface of the final output sheet becomes a blank.

FIG. 4C shows a state in which the printing results in FIG. 4B aredischarged to the discharge bin 350 facedown (obverse surfaces facingdown). The output sheets 4011 and 4012 are stacked on the discharge bin350 in an order of “1”, “2”, and “3” pages and “blank” from the side ofthe discharge bin 350.

FIG. 4D shows double-sided printing in reverse order output. Reverseorder output and double-sided printing are set by pressing the start key607 while the reverse order output button 650 in FIG. 3 is ON anddouble-sided printing is set with the double-sided setting button 651.As a result, output sheets 4021 and 4022 are printed. The obversesurface of the first output sheet 4021 is a blank, and the original 4003of the third page is imposed and printed on its reverse surface. Theoriginal 4002 of the second page is imposed and printed on the obversesurface of the second output sheet 4022, and the original 4001 of thefirst page is imposed and printed on its reverse surface. In thismanner, in double-sided printing in the reverse order when the number oforiginals of the same size corresponds to an odd page count, the obversesurface of the first output sheet becomes a blank.

FIG. 4E shows a state in which the printing results in FIG. 4D aredischarged to the discharge bin 350 facedown (obverse surfaces facingdown). The output sheets 4021 and 4022 are stacked on the discharge bin350 in an order of “blank” and “3”, “2”, and “1” pages from the side ofthe discharge bin 350.

FIGS. 5A to 5G are views for explaining normal order and reverse orderoutput operations in double-sided printing of size-mixed originals.

FIG. 5A is a view showing originals (original sheets) in the documentfeeding unit (feeder) 250. In this case, there are an A4-size original5001 of the first page, and A3-size originals 5002 to 5004 of the secondand third pages.

FIG. 5B is a view showing an example of double-sided printing of theseoriginals in normal order output. A printing operation in normal orderoutput and double-sided printing is implemented by pressing the startkey 607 while the reverse order output button 650 in FIG. 3 is OFF anddouble-sided printing is set with the double-sided setting button 651.As a result, the original 5001 of the first page is printed on theobverse surface of a first output sheet 5011, and a blank is imposed onits reverse surface. This is because originals of different sizes cannotbe imposed on the obverse and reverse surfaces. That is, the firstA4-size original 5001 and second A3-size original 5002 cannot be imposedon the same sheet. Then, the original 5002 of the second page is imposedand printed on the obverse surface of a second output sheet 5012, andthe original 5003 of the third page is imposed and printed on itsreverse surface. The original 5004 of the fourth page is imposed andprinted on the obverse surface of a third output sheet 5013, and a blankis imposed and printed on its reverse surface because there is no nextoriginal. In this manner, when copying size-mixed originals, which of ablank and printed surface serves as the reverse surface of the finaloutput sheet cannot be determined unless the state of size-mixedoriginals is considered in addition to the page count of an original.

FIG. 5C shows a state in which the printing results in FIG. 5B aredischarged to the discharge bin 350 facedown (obverse surfaces facingdown). The output sheets are stacked in an order of “1” page, “blank”,“2”, “3”, and “4” pages, and “blank” from the side of the discharge bin350.

FIG. 5D is a view for explaining reverse order output (1). A case inwhich size-mixed originals undergo double-sided printing in reverseorder output will be explained.

In double-sided printing in the reverse order when the page count of anoriginal is an even number, it is determined to print on the obversesurface of the first output sheet. Thus, the original 5004 of the fourthpage is imposed and printed on the obverse surface of a first outputsheet 5021, and the original 5003 of the third page is imposed andprinted on its reverse surface. The original 5002 of the second page isimposed and printed on the obverse surface of a second output sheet5022, and a blank is imposed and printed on its reverse surface (becausethe size differs between the first and second pages). Further, theoriginal 5001 of the first page is imposed and printed on the obversesurface of a third output sheet 5023, and a blank is imposed and printedon its reverse surface.

FIG. 5E shows a state in which the printing results in FIG. 5D aredischarged to the discharge bin 350 facedown (obverse surfaces facingdown). The output sheets 5021, 5022, and 5023 are stacked sequentiallyon the discharge bin 350 in an order of “4”, “3”, and “2” pages,“blank”, “1” page, and “blank” from the side of the discharge bin 350.This imposition differs from that in normal order output, and noexpected reverse order printing is achieved.

FIG. 5F is a view for explaining reverse order output (2). In this case,a blank is imposed and printed on the obverse surface of a first outputsheet 5031, and the original 5004 of the fourth page is imposed andprinted on its reverse surface. The original 5003 of the third page isimposed and printed on the obverse surface of a second output sheet5032, and the original 5002 of the second page is imposed and printed onits reverse surface. In addition, a blank is imposed and printed on theobverse surface of a third output sheet 5033, and the original 5001 ofthe first page is imposed and printed on its reverse surface.

FIG. 5G shows a state in which the printing results in FIG. 5F aredischarged to the discharge bin 350 facedown (obverse surfaces facingdown). The output sheets 5031, 5032, and 5033 are stacked sequentiallyon the discharge bin 350 in an order of “blank”, “4”, “3”, and “2”pages, “blank”, and “1” page from the side of the discharge bin 350.This output result is a result expected in double-sided printing of theoriginals 5001, 5002, 5003, and 5004 in FIG. 5A in the reverse order.

FIG. 6 is a view for explaining imposition information in the imageforming apparatus according to the embodiment.

The imposition information includes an output order 6001 in normal orderoutput, a paper size 6002, an obverse 6003 which specifies an originalcorresponding to the obverse surface, a reverse 6004 which specifies anoriginal corresponding to the reverse surface, and an impositioninformation finalization flag 6005. The CPU 120 generates impositioninformation, and saves it in the RAM 150 serving as the work area of thecontrol unit 110, or deletes it. The imposition information is alsosaved in the flash memory 140 together with an original image.

FIG. 7 is a view for explaining an example of information saved in theRAM 150 and an example of imposition information saved in the flashmemory 140 according to the embodiment.

The RAM 150 stores reverse order output information 7050 which holdsinformation representing reverse order output or normal order output,and double-sided printing information 7051 which holds informationrepresenting single-sided printing or double-sided printing. The reverseorder output information 7050 corresponds to ON/OFF of the reverse orderoutput button 650 (FIG. 3), and the double-sided printing information7051 corresponds to ON/OFF of the double-sided setting button 651 (FIG.3).

Similar to FIG. 5A, original information in the flash memory 140corresponds to an A4-size original image 7001 of the first page, andA3-size original images 7002 to 7004 of the second to fourth pages. Asimposition information, pieces of imposition information 7011, 7012, and7013 exist.

In the imposition information 7011, the output order of normal orderoutput is “1”, the paper size is “A4”, an original image correspondingto the obverse surface is the original image 7001 of the first page, anoriginal image corresponding to the reverse surface is “blank”, and theinformation finalization flag is “finalized”. In the impositioninformation 7012, the output order of normal order output is “2”, thepaper size is “A3”, an original image corresponding to the obversesurface is the original image 7002 of the second page, an original imagecorresponding to the reverse surface is the original image 7003 of thethird page, and the information finalization flag is “finalized”. In theimposition information 7013, the output order of normal order output is“3”, the paper size is “A3”, an original image corresponding to theobverse surface is the original image 7004 of the fourth page, anoriginal image corresponding to the reverse surface is “blank”, and theinformation finalization flag is “finalized”.

FIG. 8 is a flowchart for explaining a printing control method by thecontrol unit 110 of the image forming apparatus according to theembodiment. This flowchart is implemented by executing a program in theROM 160 by the CPU 120 of the control unit 110 using the RAM 150 as awork area.

In step S8002, the control unit 110 determines, based on the reverseorder output information 7050 in the RAM 150 that is exemplified in FIG.7, whether normal order output or reverse order output is set. If thecontrol unit 110 determines that reverse order output is set, theprocess advances to step S8003; if it determines that normal orderoutput is set, to step S8011. In step S8003 (reverse order), the controlunit 110 waits for input of one original page from the reader unit 200.When the user sets an original sheets bundle on the document feedingunit (feeder) 250 and presses the start key 607, the control unit 110reads the original sheets on the document feeding unit (feeder) 250sequentially page by page. Image data of each original is then saved inthe image memory 130. After that, the process advances to step S8004,and the control unit 110 moves the image data in the image memory 130 tothe flash memory 140. This is because the memory capacity of the imagememory 130 is limited, as described above. If the image memory 130 has asufficient capacity, this processing can be omitted.

The process advances to step S8005, and the control unit 110 performsimposition processing based on imposition information already present inthe flash memory 140 and the size of the image data. Details of theimposition processing will be described later with reference to FIG. 9.The process advances to step S8006, and the control unit 110 stores theimposition information created in step S8005 in the flash memory 140.The process advances to step S8007, and the control unit 110 determineswhether all original sheets have been read from the reader unit 200. Ifa plurality of original sheets of the original sheets bundle still existon the document feeding unit (feeder) 250 and an intermediate originalsheet is being read, the process advances to step S8003 to read the nextoriginal page. After the end of reading all original sheets, the processadvances to step S8008.

In step S8008, the control unit 110 reads out the pieces of impositioninformation saved in the flash memory 140. For example, as for thepieces of imposition information 7011, 7012, and 7013 in FIG. 7, “1”,“2”, and “3” are assigned in order by the “output order in normal order”in the pieces of imposition information 7011, 7012, and 7013. Therefore,to read out the pieces of imposition information in the reverse order,the imposition information 7013 is read out first. Then, the processadvances to step S8009, and the control unit 110 prints based on theimposition information read out in step S8008. The control unit 110copies, from the flash memory 140 to the image memory 130, image data oforiginals corresponding to the obverse and reverse in the impositioninformation read out in step S8008, and issues a print instruction tothe printer unit 300. At this time, because of reverse order printing,the control unit 110 exchanges the obverse and reverse in the impositioninformation with each other, and then issues a print instruction. Instep S8010, the control unit 110 determines whether printingcorresponding to all pieces of imposition information has beencompleted. If printing corresponding to all pieces of impositioninformation has been completed, the process ends. If printingcorresponding to all pieces of imposition information has not beencompleted, the process returns to step S8008 to perform printing controlcorresponding to the next imposition information.

If the control unit 110 determines in step S8002 that normal orderoutput is set, the process advances to step S8011, and the control unit110 waits for input of one original page from the reader unit 200. Whenthe user sets an original sheets bundle on the document feeding unit(feeder) 250 and presses the start key 607, the control unit 110 readsthe original sheets on the document feeding unit (feeder) 250sequentially page by page. Image data of each original is then saved inthe image memory 130. In step S8012, the control unit 110 performsimposition processing based on imposition information already present inthe flash memory 140 and the size of the image data. This processing isthe same as that in step S8005 described above, and details of thisprocessing will be described later with reference to FIG. 9.

The process advances to step S8013, and the control unit 110 determineswhether imposition information in the flash memory 140 has beenfinalized. If the imposition information has been finalized, the processadvances to step S8014; if it has not been finalized, to step S8011 towait for input of the next original. In step S8014, the control unit 110prints based on the imposition information finalized in step S8013.Thereafter, the process advances to step S8015, and the control unit 110determines whether printing corresponding to all pieces of impositioninformation has been completed. If printing corresponding to all piecesof imposition information has been completed, the process ends. Ifprinting corresponding to all pieces of imposition information has notbeen completed, the process returns to step S8011 to perform printprocessing corresponding to the next imposition information. After theend of printing control for all pieces of imposition information, thecontrol unit 110 ends this processing.

FIG. 9 is a flowchart for explaining imposition processing in step S8005or S8012 of FIG. 8. Similar to FIG. 8, this flowchart is implemented byexecuting a program in the ROM 160 by the CPU 120 of the control unit110 using the RAM 150 as a work area.

In step S9002, the control unit 110 determines whether unfinalizedimposition information exists in the flash memory 140. If unfinalizedimposition information exists, the process advances to step S9003; if nounfinalized imposition information exists, to step S9006. Unfinalizedimposition information means imposition information in which only theobverse surface has been finalized in imposition information fordouble-sided printing and an original to be assigned to the reversesurface has not been finalized.

The process advances to step S9003, and the control unit 110 determineswhether the paper size in the unfinalized imposition informationobtained in step S9002 coincides with the original size of one inputpage. The original size is the size of an original of one page input instep S8003 or S8011 of FIG. 8. If the control unit 110 determines thatthe paper size does not coincide with the original size, the processadvances to step S9004; if it determines that the paper size coincideswith the original size, to step S9011. In step S9004, the control unit110 assigns a blank to the reverse surface in the unfinalized impositioninformation obtained in step S9002. This is because originals ofdifferent sizes cannot be assigned to the obverse and reverse surfacesof one sheet, as described with reference to FIGS. 5A to 5G. The processthen advances to step S9005. In step S9005, the control unit 110 sets“finalized” at the information finalization flag in the impositioninformation in which originals have been assigned to the obverse andreverse surfaces, and the process advances to step S9006.

The control unit 110 newly creates imposition information in step S9006,and embeds pieces of information in the newly created impositioninformation in steps S9007 and S9008. More specifically, in step S9007,the control unit 110 embeds the paper size in the imposition informationcreated in step S9006 with the paper size of the original (original ofone page input in step S8003 or S8011 of FIG. 8). The process advancesto step S9008, and the control unit 110 assigns the original (originalof one page input in step S8003 or S8011 of FIG. 8) to the obversesurface in the imposition information created in step S9006. Thereafter,the process advances to step S9009, and the control unit 110 determines,based on the double-sided printing information 7051 in the RAM 150,which of single-sided printing and double-sided printing is set. Ifdouble-sided printing is set, imposition information cannot befinalized, and the imposition processing ends with the impositioninformation remaining unfinalized. This is because the reverse surfacein the imposition information has not been finalized owing todouble-sided printing. If single-sided printing is set, the processadvances to step S9012 to “finalize” the imposition information, and theimposition processing ends.

If the control unit 110 determines in step S9003 that the sizes coincidewith each other, the process advances to step S9011, and the controlunit 110 assigns the original of one page input in step S8003 or S8011of FIG. 8 to the reverse surface in the unfinalized impositioninformation. The process advances to step S9012, and the control unit110 sets “finalized” at the information finalization flag because boththe obverse and reverse surfaces in the imposition information have beenfinalized. After that, a series of imposition processes end.

As described above, according to the first embodiment, even indouble-sided printing of size-mixed originals in reverse order output,as shown in FIG. 5A, the memory holds the pieces of impositioninformation 7011, 7012, and 7013 which impose original sheets onrecording sheets in the normal order. After the end of reading alloriginal sheets, the pieces of imposition information held in the memoryare read out in the reverse order. The first embodiment can thereforeimplement reverse order output opposite to normal order output.

Second Embodiment

The second embodiment according to the present invention will bedescribed. A conventional image forming apparatus has a document printfunction of displaying a list of image data saved in the flash memory140, prompting the user to select image data he wants from the list, andprinting the image data. The second embodiment will explain printingcontrol when a plurality of documents are selected from documents savedin a flash memory 140, and output in the reverse order. Note that thehardware arrangement of an image forming apparatus according to thesecond embodiment is the same as that of the image forming apparatusaccording to the first embodiment, and a description thereof will not berepeated.

FIG. 10 is a view exemplifying a display on an LCD touch panel 600 indocument printing according to the second embodiment.

When the user presses a box button 10001, a print function screen fordocuments stored in a box appears. The document print function screendisplays a list of documents stored in the flash memory 140. In thesecond embodiment, there are two, document 1 (10011) and document 2(10012). When the user selects the document 1 (10011), a box 10021 ischecked (ticked) to represent that the document 1 has been selected.Similarly, when the user selects the document 2 (10012), a box 10022 ischecked (ticked) to represent that the document 2 has been selected. Inthe example of FIG. 10, both the documents 1 and 2 are selected, so boththe boxes 10021 and 10022 are checked.

To print the selected documents in this state, the user presses a printstart button 10053. To perform double-sided printing for the selecteddocuments, the user selects a double-sided printing button 10051 (checksit with a tick), and then presses the print start button 10053. If theuser selects a reverse order output setting button 10052 (checks it witha tick), and then presses the print start button 10053, the selecteddocuments are printed by reverse order output. In FIG. 10, two documentsare selected, and it is set to print them by double-sided printing inthe reverse order.

FIGS. 11A to 11E are views for explaining a document image andimposition information in document printing according to the secondembodiment.

FIG. 11A is a view for explaining the originals (original sheets) of thefirst document 1 (10011). The first document 1 (10011) is formed from anA4-size original 11001 of the first page, and A3-size originals 11002,11003, and 11004 of the second, third, and fourth pages. FIG. 11B is aview for explaining the originals (original sheets) of the seconddocument 2 (10012). The second document 2 (10012) is formed from anA3-size original 11011 of the first page and an A3-size original 11012of the second page.

FIG. 11C is a view for explaining imposition information correspondingto the document 1 (10011). There are pieces of imposition information11051, 11052, and 11053. Similar to FIG. 7, in the impositioninformation 11051, the output order of normal order output is “1”, thepaper size is “A4”, an original corresponding to the obverse surface isthe “original 11001”, an original corresponding to the reverse surfaceis “blank”, and the information finalization flag is “finalized”. In theimposition information 11052, the output order of normal order output is“2”, the paper size is “A3”, an original corresponding to the obversesurface is the “original 11002”, an original corresponding to thereverse surface is the “original 11003”, and the informationfinalization flag is “finalized”. In the imposition information 11053,the output order of normal order output is “3”, the paper size is “A3”,an original corresponding to the obverse surface is the “original11004”, an original corresponding to the reverse surface is “blank”, andthe information finalization flag is “finalized”.

FIG. 11D shows imposition information 11054 serving as impositioninformation corresponding to the document 2 (10012). In the impositioninformation 11054, the output order of normal order output is “1”, thepaper size is “A3”, an original corresponding to the obverse surface isthe “original 11011”, an original corresponding to the reverse surfaceis the “original 11012”, and the information finalization flag is“finalized”.

In FIG. 11C, the reverse surface in the final imposition information11053 of the document 1 (10011) is a blank. Therefore, when selectingand printing the document 1 (10011) and document 2 (10012), it isnecessary to assign the first original 11011 of the document 2 to“blank” on the reverse surface in the information 11053, and performdouble-sided printing. In this case, when selecting and printing thedocument 1 (10011) and document 2 (10012), the imposition information11053 and imposition information 11054 are deleted. Then, impositioninformation 11061 and imposition information 11062 are newly generated,as shown in FIG. 11E.

In the imposition information 11061, the output order of normal orderoutput is “3”, the paper size is “A3”, an original corresponding to theobverse surface is the “original 11004”, an original corresponding tothe reverse surface is the “original 11011”, and the informationfinalization flag is “finalized”. In the imposition information 11062,the output order of normal order output is “4”, the paper size is “A3”,an original corresponding to the obverse surface is the “original11012”, an original corresponding to the reverse surface is “blank”, andthe information finalization flag is “finalized”.

When selecting and printing the document 1 (10011) and document 2(10012), imposition processing is generally executed sequentially fromthe first original 11001 of the document 1. However, even if pieces ofimposition information are regenerated from the start of the document 1,they remain unchanged except for the final imposition information. Inthe example of FIG. 11C, there are three pieces of impositioninformation. If there are many pieces of imposition information of thedocument 1 (10011), the generation cost of regenerating pieces ofimposition information rises. To prevent this, when selecting andprinting a plurality of documents, it is desirable to regenerate thefinal imposition information (imposition information 11053 in FIG. 11C)of a preceding document (document 1) whose imposition information maychange.

FIG. 12 is a flowchart for explaining printing control by a control unit110 of the image forming apparatus according to the second embodiment.This flowchart is implemented by executing a program in a ROM 160 by aCPU 120 of the control unit 110 using a RAM 150 as a work area.

In step S12002, the control unit 110 determines whether the reverse inthe final imposition information 11053 of the document 1 (10011) in theflash memory 140 is a blank. If the reverse in the final impositioninformation 11053 is a blank, the process advances to step S12003; ifthe reverse in the final imposition information 11053 is not a blank andan original is assigned, to step S12013. In step S12003, the controlunit 110 sets “unfinalized” at the information finalization flag in thefinal imposition information 11053 of the document 1 (10011). Theprocess advances to step S12004, and the control unit 110 reads outimposition information of the document 2 (10012) in the normal order.The process advances to step S12005, and the control unit 110 reads anoriginal on the obverse surface and a paper size in the impositioninformation of the document 2 that has been read out in step S12004. Forexample, in FIG. 11D, the “original 11011” serving as an original on theobverse surface and the paper size “A3” in the imposition information11054 are extracted.

Then, the process advances to step S12006, and the control unit 110performs imposition processing shown in the flowchart of FIG. 9 based onthe original and paper size read in step S12005. Details of theimposition processing are the same as those in FIG. 9, and a descriptionthereof will not be repeated. For example, in FIG. 11E, the “original11011” is assigned to the reverse surface in the imposition information11061 (which is originally the imposition information 11053) in stepS12006.

The process advances to step S12007, and the control unit 110 determineswhether an original has been assigned to the reverse surface in theimposition information of the document 2 that has been read in stepS12004. If an original has been assigned, the process advances to stepS12008; if no original has been assigned, to step S12011. In stepS12008, the control unit 110 reads out an original on the reversesurface and a paper size in the imposition information that has beenread in step S12004. For example, in FIG. 11D, the “original 11012”serving as an original on the reverse surface and the paper size “A3” inthe imposition information 11054 are extracted. Thereafter, the processadvances to step S12009, the control unit 110 performs impositionprocessing in FIG. 9 based on the original and paper size read in stepS12008. Details of the imposition processing are the same as those inFIG. 9, and a description thereof will not be repeated. For example, asshown in FIG. 11E, the “original 11012” is assigned to the obversesurface in the imposition information 11062 in step S12009.

In step S12010, the imposition information of the document 2 that hasbeen read in step S12004 becomes unnecessary, so the control unit 110deletes the imposition information. For example, the impositioninformation 11054 shown in FIG. 11D becomes unnecessary and is deleted.The process advances to step S12011, and the control unit 110 determineswhether all pieces of imposition information of the document 2 (10012)have been processed. If all pieces of imposition information of thedocument 2 (10012) have been processed, the process advances to stepS12012. If imposition information to be processed still remains, theprocess returns to step S12004 to process the next impositioninformation. For example, in FIG. 11D, the imposition information 11054is the final imposition information of the document 2 (10012), so theprocess advances to step S12012. In step S12012, if the newly createdfinal imposition information has not been finalized, the control unit110 “finalizes” it. For example, in FIG. 11E, the control unit 110 sets“finalized” at the finalization flag in the imposition information 11062generated in step S12009.

If the reverse in the final imposition information 11053 of the document1 (10011) is not a blank in step S12002, the process advances to stepS12013, and the control unit 110 determines that the final impositioninformation of the first document does not change. Thus, the controlunit 110 adds the final output order of the first document in the normalorder to the output order in imposition information of the seconddocument in the normal order. Then, the imposition processing forreverse order output when a plurality of documents are selected ends.After that, the control unit 110 shifts to step S8008 in the flowchartof FIG. 8 to execute printing control in reverse order output.

As described above, according to the second embodiment, only impositioninformation necessary to implement the same imposition and layout asthose in normal order output is generated. Even if the user selects aplurality of documents, it suffices to update only minimum impositioninformation. This can reduce the burden on the control unit 110.

Other Embodiments

Aspects of the present invention can also be realized by a computer of asystem or apparatus (or devices such as a CPU or MPU) that reads out andexecutes a program recorded on a memory device to perform the functionsof the above-described embodiment(s), and by a method, the steps ofwhich are performed by a computer of a system or apparatus by, forexample, reading out and executing a program recorded on a memory deviceto perform the functions of the above-described embodiment(s). For thispurpose, the program is provided to the computer for example via anetwork or from a recording medium of various types serving as thememory device (for example, computer-readable medium).

While the present invention has been described with reference toexemplary embodiments, it is to be understood that the invention is notlimited to the disclosed exemplary embodiments. The scope of thefollowing claims is to be accorded the broadest interpretation so as toencompass all such modifications and equivalent structures andfunctions.

This application claims the benefit of Japanese Patent Application No.2011-259511, filed Nov. 28, 2011, which is hereby incorporated byreference herein in its entirety.

1. (canceled)
 2. A printing apparatus capable of performing duplexprinting, comprising: an assigning unit configured to assign originalimages of a plurality of pages to front and back surfaces of each of aplurality of sheets, wherein assignment of the original images isperformed, in both of a case of normal order output being instructed anda case of reverse order output being instructed, in turn from a firstpage of the plurality of pages, and a blank page is assigned when anumber of consecutive pages of a same size is an odd number; and aprinting control unit configured to, when the normal order output isinstructed, control to print the original images from a sheet to whichthe assigning unit assigns an original image of the first page out ofthe plurality of pages, and when the reverse order output is instructed,control to print the original images from a sheet to which the assigningunit assigns an original image of a final page out of the plurality ofpages, wherein printing of the original images is performed based on aresult of the assignment in which the original images are assigned inturn from the first page of the plurality of pages, in both of the caseof the normal order output being instructed and the case of the reverseorder output being instructed.
 3. The apparatus according to claim 2,wherein the assigning unit is configured not to assign, of the originalimages of the plurality of pages, images of different sizes to a singlesheet.
 4. The apparatus according to claim 2, further comprising astorage unit configured to store imposition information representing asurface to which the assigning unit assigns each of the original images,wherein when the reverse order output is instructed, the printingcontrol unit controls to print, in accordance with the impositioninformation stored in the storage unit, the original images from a sheetto which the assigning unit assigns the original image of the final pageout of the plurality of pages.
 5. A control method for controlling aprinting apparatus capable of performing duplex printing, comprising:assigning original images of a plurality of pages to front and backsurfaces of each of a plurality of sheets, wherein assignment of theoriginal images is performed, in both of a case of normal order outputbeing instructed and a case of reverse order output being instructed, inturn from a first page of the plurality of pages, and a blank page isassigned when a number of consecutive pages of a same size is an oddnumber; when the normal order output is instructed, controlling to printthe original images from a sheet to which an original image of the firstpage out of the plurality of pages is assigned; and when the reverseorder output is instructed, controlling to print the original imagesfrom a sheet to which an original image of a final page out of theplurality of pages is assigned, wherein printing of the original imagesis performed based on a result of the assignment in which the originalimages are assigned in turn from the first page of the plurality ofpages, in both of the case of the normal order output being instructedand the case of the reverse order output being instructed.
 6. Anon-transitory computer-readable storage medium storing a program forcausing a computer to execute a control method for controlling aprinting apparatus capable of performing duplex printing, the programincluding: assigning original images of a plurality of pages to frontand back surfaces of each of a plurality of sheets, wherein assignmentof the original images is performed, in both of a case of normal orderoutput being instructed and a case of reverse order output beinginstructed, in turn from a first page of the plurality of pages, and ablank page is assigned when a number of consecutive pages of a same sizeis an odd number; when the normal order output is instructed,controlling to print the original images from a sheet to which anoriginal image of the first page out of the plurality of pages isassigned; and when the reverse order output is instructed, controllingto print the original images from a sheet to which an original image ofa final page out of the plurality of pages is assigned, wherein printingof the original images is performed based on a result of the assignmentin which the original images are assigned in turn from the first page ofthe plurality of pages, in both of the case of the normal order outputbeing instructed and the case of the reverse order output beinginstructed.